package com.cdplife.ci.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 险种表
 * </p>
 *
 * @author jers
 * @since 2018-11-07
 */
@TableName("insurance_kind")
public class InsuranceKind extends Model<InsuranceKind> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("created_by")
    private String createdBy;
    @TableField("created_date")
    private Date createdDate;
    @TableField("last_modified_by")
    private String lastModifiedBy;
    @TableField("last_modified_date")
    private Date lastModifiedDate;
    /**
     * 保单ID
     */
    @TableField("policy_id")
    private Integer policyId;
    /**
     * 险种代码
     */
    @TableField("insurance_kind_code")
    private String insuranceKindCode;
    /**
     * 险种名称
     */
    @TableField("insurance_kind_name")
    private String insuranceKindName;
    /**
     * 险种类型：config_id
     */
    @TableField("insurance_kind_type")
    private Integer insuranceKindType;
    /**
     * 保额类型：1固定保额 2浮动保额
     */
    @TableField("amount_type")
    private Integer amountType;
    /**
     * （免核保）保额额度
     */
    @TableField("amount_limit")
    private BigDecimal amountLimit;
    /**
     * 保费（比例）
     */
    private BigDecimal amount;
    /**
     * 备注信息
     */
    @TableField("insurance_comment")
    private String insuranceComment;
    /**
     * 保障说明
     */
    @TableField("insurance_explain")
    private String insuranceExplain;

    @TableField("is_del")
    private Integer isDel;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    public String getLastModifiedBy() {
        return lastModifiedBy;
    }

    public void setLastModifiedBy(String lastModifiedBy) {
        this.lastModifiedBy = lastModifiedBy;
    }

    public Date getLastModifiedDate() {
        return lastModifiedDate;
    }

    public void setLastModifiedDate(Date lastModifiedDate) {
        this.lastModifiedDate = lastModifiedDate;
    }

    public Integer getPolicyId() {
        return policyId;
    }

    public void setPolicyId(Integer policyId) {
        this.policyId = policyId;
    }

    public String getInsuranceKindCode() {
        return insuranceKindCode;
    }

    public void setInsuranceKindCode(String insuranceKindCode) {
        this.insuranceKindCode = insuranceKindCode;
    }

    public String getInsuranceKindName() {
        return insuranceKindName;
    }

    public void setInsuranceKindName(String insuranceKindName) {
        this.insuranceKindName = insuranceKindName;
    }

    public Integer getInsuranceKindType() {
        return insuranceKindType;
    }

    public void setInsuranceKindType(Integer insuranceKindType) {
        this.insuranceKindType = insuranceKindType;
    }

    public Integer getAmountType() {
        return amountType;
    }

    public void setAmountType(Integer amountType) {
        this.amountType = amountType;
    }

    public BigDecimal getAmountLimit() {
        return amountLimit;
    }

    public void setAmountLimit(BigDecimal amountLimit) {
        this.amountLimit = amountLimit;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public String getInsuranceComment() {
        return insuranceComment;
    }

    public void setInsuranceComment(String comment) {
        this.insuranceComment = comment;
    }

    public String getInsuranceExplain() {
        return insuranceExplain;
    }

    public void setInsuranceExplain(String explain) {
        this.insuranceExplain = explain;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "InsuranceKind{" +
        ", id=" + id +
        ", createdBy=" + createdBy +
        ", createdDate=" + createdDate +
        ", lastModifiedBy=" + lastModifiedBy +
        ", lastModifiedDate=" + lastModifiedDate +
        ", policyId=" + policyId +
        ", insuranceKindCode=" + insuranceKindCode +
        ", insuranceKindName=" + insuranceKindName +
        ", insuranceKindType=" + insuranceKindType +
        ", amountType=" + amountType +
        ", amountLimit=" + amountLimit +
        ", amount=" + amount +
        ", insuranceComment=" + insuranceComment +
        ", insuranceExplain=" + insuranceExplain +
        "}";
    }
}
